package com.atguigu.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @author 赵雨强
 * @create 2021/8/9 8:39
 * @description 从service层处理服务降级。
 */
@Component
public class PaymentFallbackService implements PaymentHystrixService{
    @Override
    public String paymentInfo_OK(Integer id) {
        return "----PaymentFallbackService fall back paymentInfo_OK,o(╥﹏╥)o";
    }

    @Override
    public String paymentInfo_Timeout(Integer id) {
        return "----PaymentFallbackService fall back paymentInfo_Timeout,o(╥﹏╥)o";
    }
}
